﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/AdminMaster.Master" AutoEventWireup="true" CodeBehind="AdminUserPositionCollect.aspx.cs" Inherits="TravelLink.WebApp.Admin.AdminUserPositionCollect" %>
<%@ Register assembly="DevExpress.Web.ASPxGridView.v11.1, Version=11.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxGridView" tagprefix="dx" %>
<%@ Register assembly="DevExpress.Web.ASPxEditors.v11.1, Version=11.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxEditors" tagprefix="dx" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <dx:ASPxGridView ID="ASPxGridView1" runat="server" AutoGenerateColumns="False" 
        DataSourceID="LinqDataSource1" KeyFieldName="UserCode" 
        onhtmldatacellprepared="ASPxGridView1_HtmlDataCellPrepared">
        <Columns>
        <dx:GridViewDataTextColumn Caption="公司" FieldName="TL_Company_Position.TL_Company.CompanyName" VisibleIndex="0">
            </dx:GridViewDataTextColumn>
            <dx:GridViewDataTextColumn Caption="职位" FieldName="TL_Company_Position.PositionName" VisibleIndex="1">
            </dx:GridViewDataTextColumn>
            <dx:GridViewDataHyperLinkColumn Caption="用户编号" FieldName="UserCode" 
                ReadOnly="True" VisibleIndex="2">
                <PropertiesHyperLinkEdit NavigateUrlFormatString="AdminUserManager.aspx?UserCode={0}">
                </PropertiesHyperLinkEdit>
            </dx:GridViewDataHyperLinkColumn>
            <dx:GridViewDataHyperLinkColumn Caption="职位编号" FieldName="PositionCode" 
                ReadOnly="True" VisibleIndex="3">
                <PropertiesHyperLinkEdit NavigateUrlFormatString="AdminPosition.aspx?PositionCode={0}">
                </PropertiesHyperLinkEdit>
            </dx:GridViewDataHyperLinkColumn>
            <dx:GridViewDataDateColumn Caption="收藏日期" FieldName="CollectDate" 
                VisibleIndex="4">
            </dx:GridViewDataDateColumn>
            <dx:GridViewDataDateColumn Caption="申请日期" FieldName="ApplyDate" 
                VisibleIndex="5">
            </dx:GridViewDataDateColumn>
            <dx:GridViewDataTextColumn Caption="姓名" 
                FieldName="TL_User.CLastName+TL_User.CFirstName" VisibleIndex="6">
            </dx:GridViewDataTextColumn>
        </Columns>
    </dx:ASPxGridView>
    <asp:LinqDataSource ID="LinqDataSource1" runat="server" 
        ContextTypeName="TravelLink.DAL.TravelLinkDBDataContext" EntityTypeName="" 
        OrderBy="CollectDate, ApplyDate" TableName="TL_User_Position_Collect">
    </asp:LinqDataSource>
</asp:Content>
